<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" import="java.util.*"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<% 
String source= request.getRequestURL().toString();
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr align="left" valign="top">
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
  <tr align="left" valign="top">
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td><table align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="1039" colspan="2" align="left" valign="top"><img src="image/img_header.jpg" width="770" height="1"></td>
      </tr>
      <tr>
        <td colspan="2" align="left" valign="top"><iframe src="jsp/web/header3.jsp" width="100%"
scrolling="no"
marginwidth="0" marginheight="0" frameborder="0"> </iframe></td>
      </tr>
      <tr>
        <td colspan="2" align="left" valign="top"><table border="0" align="center" cellpadding="0" cellspacing="0" width="770" height="473">
            <tr>
              <td width="10" align="left" valign="top">&nbsp;</td>
              <td width="408" colspan="3" align="left" valign="top">&nbsp;</td>
              <td width="10" align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top" class="title1"><img src="image/img_t_width_differ.jpg" width="125" height="4"></td>
              <td colspan="3" align="left" valign="top" class="title1 style10">Asking </td>
              <td align="left" valign="top" class="title1"><img src="image/img_t_width_differ.jpg" width="125" height="4"></td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top">&nbsp;</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top" class="brown_18">Finally, tag your question!</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
<%--            <td height="75" colspan="3" align="left" valign="middle"> <html:text property="text"  readonly="true" size="65" styleClass="black_blod"></html:text>--%>
                  <%--                  <input name="textfield32" type="text" class="black_blod" value="Maecenas nonummy" size="65">--%>
              </td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td height="50" colspan="3" align="left" valign="middle" class="table_content">Please provide proper tags[or categories/keywords] for your question so that the right answer will see your question. The more accurate the tags are, the more likely you get satisfying answers.</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top" class="table_content">&nbsp;</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top" class="table_content">Please type tags in the below box. Theree to five tags are recommended.</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top" class="table_content">&nbsp;</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top" class="table_content"><table width="500" border="0" cellpadding="0" cellspacing="0">
                  <tr align="left" valign="top">
                    <td width="56" class="username_light">Tags 1 </td>
<%--                <td width="257"> <html:text property="tag1" size="43" ></html:text>--%>
                        <%--                      <input name="textfield322" type="text" class="table_content" value="Maecenas nonummy" size="50">--%>
                    </td>
                    <td width="121">
                      <table border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr align="left" valign="top">
                          <td><a href="javascript: attachfiles();"><img src="image/G_RIGHT.jpg" width="14" height="13" border="0"></a></td>
                          <td>&nbsp;</td>
                          <td><a href="javascript:removeElement()"><img src="image/G_worng.jpg" width="14" height="13" border="0"></a></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top" class="table_content">&nbsp;</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top" class="table_content">&nbsp;</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
            
            
            
            <tr>
              <td align="left" valign="top">&nbsp;</td>
              <td colspan="3" align="left" valign="top">&nbsp;</td>
              <td align="left" valign="top">&nbsp;</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" align="left" valign="top">
          <%@ include file="footer1.jsp" %>
          <%--              <iframe src="jsp/web/footer1.html" width="100%" height="85"--%>
          <%--scrolling="no"--%>
          <%--marginwidth="0" marginheight="0" frameborder="0">--%>
          <%--</iframe>--%>
        </td>
      </tr>
    </table></td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
  <tr align="left" valign="top">
    <td width="50%" bgcolor="#CCCCCC"><html:form action="questiondetail.do" styleId="asking">
<input type="hidden" name="nos">
<input type="hidden" name="elmt">
</html:form></td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td width="50%" bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
</table>

</body>
</html>


<script language="javascript">
document.asking.nos.value=3;
document.asking.elmt.value=3;
function attachfiles()
{

	var fi=document.asking.nos.value;

	var gi=document.asking.elmt.value;
	var ff1="asking"+gi;
	if(fi<6)
	{
	var nod1=document.createElement("div")
	nod1.setAttribute("id",ff1)
	var mm=document.getElementById('attachmentfiles')
	var qp="";
	
	qp="<br><span class=username_light>Tags "+gi+"</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=text name=tag"+gi+" size=43>"
	nod1.innerHTML=qp;
	mm.appendChild(nod1)
	fi=1+parseInt(fi)
	document.asking.elmt.value=1+parseInt(gi)
	document.getElementById('nos').value=fi
	}
}

function removeElement() 
{

		var a =document.asking.elmt.value;
		
		b=(a-1);
		var divNum="asking"+b;
		var d = document.getElementById('attachmentfiles');
		var olddiv = document.getElementById(divNum);
		d.removeChild(olddiv);
		var li=document.asking.elmt.value
		document.asking.elmt.value=parseInt(li)-1 
		
		document.asking.nos.value=b;
}
function submitValue()
{
alert("tag3="+document.asking.tag3.value);
alert("tag4="+document.asking.tag4.value);
}
</script>
